﻿using System;
using YinfangWeb.Common;

namespace YinfangWeb.Model
{
	/// <summary>
	/// ProductPackage
	/// </summary>
    [Serializable]
	public class ProductPackage
	{
		/// <summary>
		/// ProductPackageID
        /// </summary>
        [FieldName("ProductPackageID")]		
		public int ProductPackageID
		{
			get;
			set;
		}
        
		/// <summary>
		/// PackageState
        /// </summary>
        [FieldName("PackageState")]		
		public int PackageState
		{
			get;
			set;
		}
        
		/// <summary>
		/// PackageName
        /// </summary>
        [FieldName("PackageName")]		
		public string PackageName
		{
			get;
			set;
		}
        
		/// <summary>
		/// ValidBegin
        /// </summary>
        [FieldName("ValidBegin")]		
		public DateTime ValidBegin
		{
			get;
			set;
		}
        
		/// <summary>
		/// ValidEnd
        /// </summary>
        [FieldName("ValidEnd")]		
		public DateTime ValidEnd
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegDateTime
        /// </summary>
        [FieldName("RegDateTime")]		
		public DateTime RegDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegUserID
        /// </summary>
        [FieldName("RegUserID")]		
		public int RegUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegFullName
        /// </summary>
        [FieldName("RegFullName")]		
		public string RegFullName
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditDateTime
        /// </summary>
        [FieldName("EditDateTime")]		
		public DateTime EditDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditUserID
        /// </summary>
        [FieldName("EditUserID")]		
		public int EditUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditFullName
        /// </summary>
        [FieldName("EditFullName")]		
		public string EditFullName
		{
			get;
			set;
		}
        
        public ProductPackage Clone()
        {
            return (ProductPackage)this.MemberwiseClone();
        }
        
        public ProductPackage()
        {
            PackageName = string.Empty;
            ValidBegin = ConvertHelper.DefaultDate;
            ValidEnd = ConvertHelper.DefaultDate;
            RegDateTime = ConvertHelper.DefaultDate;
            RegFullName = string.Empty;
            EditDateTime = ConvertHelper.DefaultDate;
            EditFullName = string.Empty;
        }
	}
}
